package com.ericsson.enap.modules.cdr.job;

import com.ericsson.common.quartz.job.MainJob;
import com.ericsson.common.quartz.job.ManualQuartzJob;
import com.ericsson.common.quartz.service.QuartzTableManager;
import com.ericsson.enap.modules.cdr.task.ImsCgCdrDownLoadTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
 * IMS话单下载ry-vue库
 * @author yanghai
 */
@Component
public class ImsCgCdrDownLoadJob implements MainJob {
        @Autowired
        QuartzTableManager quartzTableManager;
        @Autowired
        ImsCgCdrDownLoadTask imsCgCdrDownLoadTask;
        String jobName="imsCgCdrDownLoadJob";
        @Override
        public void doTask() {
            System.out.println("ImsCgCdrDownLoadJob start.....");
            //imsCgCdrDownLoadTask.execute();
            quartzTableManager.addManualTaskJob(jobName,jobName,jobName,jobName, ManualQuartzJob.class,"0 0/5 * * * ?",imsCgCdrDownLoadTask);
        }
}
